package com.beizhen.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.beizhen.demo.dao.StuBaseTeachersDao;
import com.beizhen.demo.entity.StuBaseTeachers;
import com.beizhen.demo.service.StuBaseTeachersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* 基地师资表 业务逻辑接口的实现类
*/
@Service
public class StuBaseTeachersServiceImpl extends ServiceImpl<StuBaseTeachersDao, StuBaseTeachers> implements StuBaseTeachersService {

    @Autowired
    private StuBaseTeachersDao stuBaseTeachersDao;

    @Override
    public int addTeachers(StuBaseTeachers Teachers) {
        return stuBaseTeachersDao.addTeachers(Teachers);
    }

    @Override
    public int updTeachers(StuBaseTeachers Teachers) {
        return stuBaseTeachersDao.updTeachers(Teachers);
    }

    @Override
    public List<StuBaseTeachers> getTeachersList(Integer bid) {
        return stuBaseTeachersDao.getTeachersList(bid);
    }

    @Override
    public StuBaseTeachers getTeachers(Integer btid) {
        return stuBaseTeachersDao.getTeachers(btid);
    }


    @Override
    public int clearTeachers(Integer tid) {
        return stuBaseTeachersDao.clearTeachers(tid);
    }
}
